package java5;

/**
 * @author draem
 * @desc 协变参数
 * @create 2018-06-20 00:56
 */
public class VarargsTest {

    public static void main(String[] args) {
        //todo
        test("a",2,true,false);
    }

    public static  void test(String a,int b,boolean... d) {

        System.out.println("协变的参数长度" + d.length);
        for (boolean bo : d) {

            System.out.println(bo);
        }
    }
}


